package com.hongxinguoji.manager.admin.mapper;

import com.hongxinguoji.manager.admin.pojo.HxAuthFunction;
import com.hongxinguoji.manager.admin.pojo.HxAuthFunctionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface HxAuthFunctionMapper {
    int countByExample(HxAuthFunctionExample example);

    int deleteByExample(HxAuthFunctionExample example);

    int deleteByPrimaryKey(String id);

    int insert(HxAuthFunction record);

    int insertSelective(HxAuthFunction record);

    List<HxAuthFunction> selectByExample(HxAuthFunctionExample example);

    HxAuthFunction selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") HxAuthFunction record, @Param("example") HxAuthFunctionExample example);

    int updateByExample(@Param("record") HxAuthFunction record, @Param("example") HxAuthFunctionExample example);

    int updateByPrimaryKeySelective(HxAuthFunction record);

    int updateByPrimaryKey(HxAuthFunction record);
    
    /**
     * 通过用户Id查询对应的权限
     * @param userId
     * @return
     */
    List<HxAuthFunction> getUserAuthByUserId(String userId);
}